Set operations topic
Logical operations on sets.
Functions
-
difference<
T> (Iterable< Set operationsT> iterable, Iterable<Iterable< others) → Set<Object?> >T> -
Returns a new set containing every value in
iterable
that is not in any of theothers
iterables. -
disjoint<
T> (Iterable< Set operationsObject?> a, Iterable<Object?> b) → bool -
Returns true if
a
andb
are disjoint: ifa
andb
contain no shared value. -
intersection<
T> (Iterable< Set operationsT> iterable, Iterable<Iterable< others) → Set<Object?> >T> - Returns a new set containing every (distinct) value that appears in all of the given iterables.
-
subset<
T> (Iterable< Set operationsObject?> a, Iterable<Object?> b) → bool -
Returns true if
a
is a subset ofb
: if every value in the given iterablea
is also in the given iterableb
. -
superset<
T> (Iterable< Set operationsObject?> a, Iterable<Object?> b) → bool -
Returns true if
a
is a superset ofb
: if every value in the given iterableb
is also in the given iterablea
. -
union<
T> (Iterable< Set operationsIterable< iterables) → Set<T> >T> -
Returns a new set containing every (distinct) value that appears in any of
the given
iterables
.